using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/function")]
    public class Function : EntityBase<Function>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 模块ID
        /// </summary>
        [Required]
        public Guid? ModuleID { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        [Required]
        public string Url { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Image { get; set; }
        /// <summary>
        /// 权限
        /// </summary>
        [Required]
        public int Value { get; set; }

        public int OrderIndex { get; set; }
    }
}
